﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Cn.Cellula.Website.Admin.User.AddressBook.List1" %>
<%@ Import Namespace="Cn.Cellula.Client" %>
<%@ Import Namespace="Cn.Cellula.Client.ControlHelper" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript">
        var deptDept = new JskitRichDropDownList("deptDept");
        deptDept.setEmptySelectText("-全部-");
        function PageOnLoad() {
            deptDept.deploy(fixId("txt_Dept"), fixId("hid_Dept"), "Ws/_Dept.aspx");
        }
    </script></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <fieldset>
        <legend>查询</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="query_table">
            <tr>
                <td class="query_title">
                    姓名：
                </td>
                <td class="query_content">
                    <asp:TextBox ID="txt_UserName" runat="server" MaxLength="50"></asp:TextBox>
                </td>
                <td class="query_title">
                    手机：
                </td>
                <td class="query_content">
                    <asp:TextBox ID="txt_Mobile" runat="server" MaxLength="11"></asp:TextBox>
                </td>
                <td class="query_title">
                    部门：
                </td>
                <td class="query_content">
                    <asp:TextBox runat="server" ID="txt_Dept"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_Dept" />
                </td>
                <td class="query_title">
                    QQ：
                </td>
                <td class="query_content">
                    <asp:TextBox ID="txt_QQ" runat="server" MaxLength="30"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
    <div class="action_bar">
        <asp:Button runat="server" ID="btn_Query" Text="查找" OnClick="btn_Query_Click" />
        <asp:Button runat="server" ID="btn_Export" Text="导出..." OnClientClick="alert('建设中...');return false" />
    </div>
    <fieldset>
        <legend>公共通讯录</legend>
        <asp:GridView runat="server" ID="gv_list" AutoGenerateColumns="false" CssClass="GridViewTiny"
            DataKeyNames="UserKey" AllowPaging="True" PageSize="20" PagerSettings-Mode="Numeric"
            OnPageIndexChanging="gvList_PageIndexChanging" AllowSorting="true" OnSorting="gv_list_Sorting"
             PagerSettings-Visible="true">
            <Columns>
                 <asp:TemplateField HeaderText="头像">
                    <ItemStyle Width="16px" />
                    <ItemTemplate>
                        <img src='<%# ClientBiz.ParseCoverPath(DataBinder.Eval(Container, "DataItem.CoverPath"),"/cellula_client/default/images/face_default.gif")%>' width="16" height="16"
                            alt="" border="0" /></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="">
                    <ItemTemplate>
                        <a href='Admin/Content/Msg/Send.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.UserKey")%>' title="发送站内消息">
                            <img src="/cellula_client/default/images/icon_mail.png" width="16" height="16" border="0" /></a>
                    </ItemTemplate>
                    <ItemStyle Width="16px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="姓名">
                    <ItemTemplate>
                        <a href='Admin/Content/Msg/Send.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.UserKey")%>'>
                            <%# DataBinder.Eval(Container, "DataItem.UserName")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="部门" DataField="DeptName" />
                <asp:BoundField HeaderText="职务" DataField="Duty" />
                <asp:TemplateField HeaderText="EMAIL">
                    <ItemTemplate>
                        <a href='mailto:<%# DataBinder.Eval(Container, "DataItem.Email")%>'>
                            <%# DataBinder.Eval(Container, "DataItem.Email")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="手机" DataField="Mobile" />
                <asp:BoundField HeaderText="座机" DataField="Tel" />
                <asp:BoundField HeaderText="QQ" DataField="QQ" />              
                            </Columns>
            <PagerTemplate>
                共有<asp:Label runat="server" ID="LAB_PAGER_TOTALCOUNT"></asp:Label>条记录
                | <asp:LinkButton ID="lbnFirst" runat="Server" Text="首页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'
                    CommandName="Page" CommandArgument="First"></asp:LinkButton>
                | <asp:LinkButton ID="lbnPrev" runat="server" Text="上一页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'
                    CommandName="Page" CommandArgument="Prev"></asp:LinkButton>
                <asp:DropDownList runat="server" ID="DDL_PAGER_SELECTOR" OnSelectedIndexChanged="gvPager_OnSelectedIndexChanged" AutoPostBack="true" >
                </asp:DropDownList>
                <asp:LinkButton ID="lbnNext" runat="Server" Text="下一页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>'
                    CommandName="Page" CommandArgument="Next"></asp:LinkButton>
                | <asp:LinkButton ID="lbnLast" runat="Server" Text="尾页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>'
                    CommandName="Page" CommandArgument="Last"></asp:LinkButton>
            </PagerTemplate>
            <HeaderStyle CssClass="GridViewHeaderTiny" />
            <RowStyle CssClass="GridViewRowTiny" />
            <FooterStyle CssClass="GirdViewFooter" />
            <AlternatingRowStyle CssClass="GirdViewAlternatingRowTiny" />
            <PagerStyle CssClass="GridViewPagerTiny" />
            <EmptyDataRowStyle CssClass="GridViewEmptyDataRowTiny" />
            <EmptyDataTemplate>
                没有可用的数据</EmptyDataTemplate>
         </asp:GridView>
    </fieldset>
</asp:Content>

